home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-16 | 31.6 KB | 1,411 lines |
- *** 41.1 1993/11/03 14:12:50
- --- ./PatchLev.h 1993/11/04 03:25:52
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define _PatchLevel "41"
- --- 3,6 ----
- * directory.
- */
-
- ! #define _PatchLevel "42"
- *** 41.1 1993/11/03 14:12:50
- --- ./assert.h 1994/01/09 09:01:46
- ***************
- *** 6,12 ****
- /* Allow this file to be included multiple times
- with different settings of NDEBUG. */
- #undef assert
- - #undef assertval
-
- #ifndef _COMPILER_H
- #include <compiler.h>
- --- 6,11 ----
- ***************
- *** 19,25 ****
-
- __EXTERN void __eprintf __PROTO((const char *expression, const long line,
- const char *filename));
- ! __EXTERN __EXITING abort __PROTO((void));
-
- #ifdef __cplusplus
- }
- --- 18,24 ----
-
- __EXTERN void __eprintf __PROTO((const char *expression, const long line,
- const char *filename));
- ! __EXTERN __EXITING abort __PROTO((void)) __NORETURN;
-
- #ifdef __cplusplus
- }
- ***************
- *** 27,44 ****
-
-
- #ifdef NDEBUG
- ! #define assert(cond)
- ! #define assertval(cond)
- #else
-
- #if __STDC__
- #define assert(cond) \
- ! if(!(cond)) \
- ! { __eprintf(#cond,(long)(__LINE__), __FILE__); abort(); }
- !
- ! #define assertval(cond) \
- ! ((cond) ? 1 : \
- ( __eprintf(#cond,(long)(__LINE__), __FILE__), abort(), 0 ))
- #else
-
-
- --- 26,39 ----
-
-
- #ifdef NDEBUG
- ! #define assert(cond) (void *)0
- #else
-
- #if __STDC__
- #define assert(cond) \
- ! ((cond) ? 0 : \
- ( __eprintf(#cond,(long)(__LINE__), __FILE__), abort(), 0 ))
- +
- #else
-
-
- ***************
- *** 56,66 ****
- #endif /* __SOZOBON__ */
-
- #define assert(cond) \
- ! if(!(cond)) \
- ! { __eprintf("cond", (long)(__LINE__), __FILE__); abort(); }
- !
- ! #define assertval(cond) \
- ! ((cond) ? 1: \
- ( __eprintf("cond", (long)(__LINE__), __FILE__), abort(), 0))
-
- #endif /* __STDC__ */
- --- 51,57 ----
- #endif /* __SOZOBON__ */
-
- #define assert(cond) \
- ! ((cond) ? 0 : \
- ( __eprintf("cond", (long)(__LINE__), __FILE__), abort(), 0))
-
- #endif /* __STDC__ */
- *** 41.1 1993/11/03 14:12:50
- --- ./compiler.h 1993/11/30 18:49:16
- ***************
- *** 33,38 ****
- --- 33,39 ----
- /* __PTRDIFF_TYPEDEF__: the type of the difference of two pointers */
- /* __WCHAR_TYPEDEF__: wide character type (i.e. type of L'x') */
- /* __EXITING: the type of a function that exits */
- + /* __NORETURN: attribute of a function that exits (gcc >= 2.5) */
- /* __CDECL: function must get parameters on stack */
- /* if !__CDECL, passing in registers is OK */
-
- ***************
- *** 68,74 ****
- --- 69,80 ----
- # define _WCHAR_T __WCHAR_TYPEDEF__
- #endif
- #endif
- + #if __GNUC__ > 2 || __GNUC_MINOR__ >= 5 /* false for gcc < 2.5 */
- + #define __NORETURN __attribute__ ((noreturn))
- + #define __EXITING void
- + #else
- #define __EXITING volatile void
- + #endif
- #define __VA_LIST__ void *
- #ifndef __NO_INLINE__
- # define __GNUC_INLINE__
- ***************
- *** 156,161 ****
- --- 162,171 ----
-
- #ifndef __CDECL
- #define __CDECL
- + #endif
- +
- + #ifndef __NORETURN
- + #define __NORETURN
- #endif
-
- #ifndef __NULL
- *** 41.1 1993/11/03 14:12:50
- --- ./gdbm.h 1993/12/01 20:42:16
- ***************
- *** 1,11 ****
- /* gdbm.h - The include file for dbm users. */
-
- /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
- ! Copyright (C) 1990, 1991 Free Software Foundation, Inc.
-
- GDBM is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- ! the Free Software Foundation; either version 1, or (at your option)
- any later version.
-
- GDBM is distributed in the hope that it will be useful,
- --- 1,11 ----
- /* gdbm.h - The include file for dbm users. */
-
- /* This file is part of GDBM, the GNU data base manager, by Philip A. Nelson.
- ! Copyright (C) 1990, 1991, 1993 Free Software Foundation, Inc.
-
- GDBM is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- ! the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GDBM is distributed in the hope that it will be useful,
- ***************
- *** 23,35 ****
- Computer Science Department
- Western Washington University
- Bellingham, WA 98226
- - phone: (206) 676-3035
-
- *************************************************************************/
-
- ! #ifdef __cplusplus
- ! extern "C" {
- ! #endif
-
- /* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
- can create the database. */
- --- 23,34 ----
- Computer Science Department
- Western Washington University
- Bellingham, WA 98226
-
- *************************************************************************/
-
- ! /* Protection for multiple includes. */
- ! #ifndef _GDBM_H_
- ! #define _GDBM_H_
-
- /* Parameters to gdbm_open for READERS, WRITERS, and WRITERS who
- can create the database. */
- ***************
- *** 37,48 ****
- --- 36,50 ----
- #define GDBM_WRITER 1 /* A writer. */
- #define GDBM_WRCREAT 2 /* A writer. Create the db if needed. */
- #define GDBM_NEWDB 3 /* A writer. Always create a new db. */
- + #define GDBM_FAST 16 /* Write fast! => No fsyncs. */
-
- /* Parameters to gdbm_store for simple insertion or replacement in the
- case that the key is already in the database. */
- #define GDBM_INSERT 0 /* Never replace old data with new. */
- #define GDBM_REPLACE 1 /* Always replace old data with new. */
-
- + /* Parameters to gdbm_setopt, specifing the type of operation to perform. */
- + #define GDBM_CACHESIZE 1 /* Set the cache size. */
-
- /* The data and key structure. This structure is defined for compatibility. */
- typedef struct {
- ***************
- *** 54,78 ****
- /* The file information header. This is good enough for most applications. */
- typedef struct {int dummy[10];} *GDBM_FILE;
-
- !
- ! /* These are the routines! */
- !
- ! extern GDBM_FILE gdbm_open ();
-
- ! extern void gdbm_close ();
-
- - extern datum gdbm_fetch ();
-
- ! extern int gdbm_store ();
- !
- ! extern int gdbm_delete ();
- !
- ! extern datum gdbm_firstkey ();
-
- ! extern datum gdbm_nextkey ();
-
- ! extern int gdbm_reorganize ();
-
-
- /* gdbm sends back the following error codes in the variable gdbm_errno. */
- typedef enum { GDBM_NO_ERROR,
- --- 56,140 ----
- /* The file information header. This is good enough for most applications. */
- typedef struct {int dummy[10];} *GDBM_FILE;
-
- ! /* Determine if the C(++) compiler requires complete function prototype */
- ! #if __STDC__ || defined(__cplusplus) || defined(c_plusplus)
- ! #define GDBM_Proto(x) x
- ! #else
- ! #define GDBM_Proto(x) ()
- ! #endif /* NeedFunctionPrototypes */
-
- ! /* External variable, the gdbm build release string. */
- ! extern char *gdbm_version;
-
-
- ! /* GDBM C++ support */
- ! #if defined(__cplusplus) || defined(c_plusplus)
- ! extern "C" {
- ! #endif
-
- ! /* These are the routines! */
-
- ! extern GDBM_FILE gdbm_open GDBM_Proto((
- ! char *file,
- ! int block_size,
- ! int flags,
- ! int mode,
- ! void (*fatal_func)()
- ! ));
- !
- ! extern void gdbm_close GDBM_Proto((
- ! GDBM_FILE dbf
- ! ));
- !
- ! extern int gdbm_store GDBM_Proto((
- ! GDBM_FILE dbf,
- ! datum key,
- ! datum content,
- ! int flags
- ! ));
- !
- ! extern datum gdbm_fetch GDBM_Proto((
- ! GDBM_FILE dbf,
- ! datum key
- ! ));
- !
- ! extern int gdbm_delete GDBM_Proto((
- ! GDBM_FILE dbf,
- ! datum key
- ! ));
- !
- ! extern datum gdbm_firstkey GDBM_Proto((
- ! GDBM_FILE dbf
- ! ));
- !
- ! extern datum gdbm_nextkey GDBM_Proto((
- ! GDBM_FILE dbf,
- ! datum key
- ! ));
- !
- ! extern int gdbm_reorganize GDBM_Proto((
- ! GDBM_FILE dbf
- ! ));
- !
- ! extern void gdbm_sync GDBM_Proto((
- ! GDBM_FILE dbf
- ! ));
- !
- ! extern int gdbm_exists GDBM_Proto((
- ! GDBM_FILE dbf,
- ! datum key
- ! ));
- !
- ! extern int gdbm_setopt GDBM_Proto((
- ! GDBM_FILE dbf,
- ! int optflag,
- ! int *optval,
- ! int optlen
- ! ));
-
- + #if defined(__cplusplus) || defined(c_plusplus)
- + }
- + #endif
-
- /* gdbm sends back the following error codes in the variable gdbm_errno. */
- typedef enum { GDBM_NO_ERROR,
- ***************
- *** 93,101 ****
- GDBM_ITEM_NOT_FOUND,
- GDBM_REORGANIZE_FAILED,
- GDBM_CANNOT_REPLACE,
- ! GDBM_ILLEGAL_DATA}
- gdbm_error;
-
- ! #ifdef __cplusplus
- }
- #endif
- --- 155,179 ----
- GDBM_ITEM_NOT_FOUND,
- GDBM_REORGANIZE_FAILED,
- GDBM_CANNOT_REPLACE,
- ! GDBM_ILLEGAL_DATA,
- ! GDBM_OPT_ALREADY_SET,
- ! GDBM_OPT_ILLEGAL}
- gdbm_error;
- + extern gdbm_error gdbm_errno;
- +
- + /* extra prototypes */
- +
- + /* GDBM C++ support */
- + #if defined(__cplusplus) || defined(c_plusplus)
- + extern "C" {
- + #endif
- +
- + extern char *gdbm_strerror GDBM_Proto((
- + gdbm_error error
- + ));
-
- ! #if defined(__cplusplus) || defined(c_plusplus)
- }
- + #endif
- +
- #endif
- *** 41.1 1993/11/03 14:12:50
- --- ./ioctl.h 1993/11/24 21:08:16
- ***************
- *** 110,115 ****
- --- 110,116 ----
- #define B50 1
- #define B75 2
- #define B110 3
- + #define B134 4
- #define B135 4
- #define B150 5
- #define B200 6
- *** 41.1 1993/11/03 14:12:50
- --- ./math-68881.h 1993/11/30 18:49:22
- ***************
- *** 1,6 ****
- - #ifndef _MATH_68881_H
- - #define _MATH_68881_H
- -
- /******************************************************************\
- * *
- * <math-68881.h> last modified: 23 May 1992. *
- --- 1,3 ----
- ***************
- *** 22,37 ****
- * *
- \******************************************************************/
-
- /* If you find this in GCC,
- please send bug reports to bug-gcc@prep.ai.mit.edu. */
-
- ! /* Changed by Richard Stallman: % inserted before a #.
- New function `hypot' added.
- Nans written in hex to avoid 0rnan.
- May 1992, use %! for fpcr register. Break lines before function names.
- December 1989, add parens around `&' in pow.
- November 1990, added alternate definition of HUGE_VAL for Sun. */
-
- #include <errno.h>
-
- #ifdef __cplusplus
- --- 19,41 ----
- * *
- \******************************************************************/
-
- + /* This file is NOT a part of GCC, just distributed with it. */
- +
- /* If you find this in GCC,
- please send bug reports to bug-gcc@prep.ai.mit.edu. */
-
- ! /* Changed by Richard Stallman:
- ! May 1993, add conditional to prevent multiple inclusion.
- ! % inserted before a #.
- New function `hypot' added.
- Nans written in hex to avoid 0rnan.
- May 1992, use %! for fpcr register. Break lines before function names.
- December 1989, add parens around `&' in pow.
- November 1990, added alternate definition of HUGE_VAL for Sun. */
-
- + #ifndef __math_68881
- + #define __math_68881
- +
- #include <errno.h>
-
- #ifdef __cplusplus
- ***************
- *** 59,65 ****
- #endif
- #endif
-
- ! __inline static const double
- sin (double x)
- {
- double value;
- --- 63,77 ----
- #endif
- #endif
-
- ! #if __GNUC__ > 2 || __GCC_MINOR__ >= 5
- ! #define __const_attribute __attribute ((const))
- ! #else
- ! #define __const_attribute
- ! #endif
- !
- ! __inline static double
- ! sin (double x) __const_attribute;
- ! __inline static double
- sin (double x)
- {
- double value;
- ***************
- *** 70,76 ****
- return value;
- }
-
- ! __inline static const double
- cos (double x)
- {
- double value;
- --- 82,90 ----
- return value;
- }
-
- ! __inline static double
- ! cos (double x) __const_attribute;
- ! __inline static double
- cos (double x)
- {
- double value;
- ***************
- *** 81,87 ****
- return value;
- }
-
- ! __inline static const double
- tan (double x)
- {
- double value;
- --- 95,103 ----
- return value;
- }
-
- ! __inline static double
- ! tan (double x) __const_attribute;
- ! __inline static double
- tan (double x)
- {
- double value;
- ***************
- *** 92,98 ****
- return value;
- }
-
- ! __inline static const double
- asin (double x)
- {
- double value;
- --- 108,116 ----
- return value;
- }
-
- ! __inline static double
- ! asin (double x) __const_attribute;
- ! __inline static double
- asin (double x)
- {
- double value;
- ***************
- *** 103,109 ****
- return value;
- }
-
- ! __inline static const double
- acos (double x)
- {
- double value;
- --- 121,129 ----
- return value;
- }
-
- ! __inline static double
- ! acos (double x) __const_attribute;
- ! __inline static double
- acos (double x)
- {
- double value;
- ***************
- *** 114,120 ****
- return value;
- }
-
- ! __inline static const double
- atan (double x)
- {
- double value;
- --- 134,142 ----
- return value;
- }
-
- ! __inline static double
- ! atan (double x) __const_attribute;
- ! __inline static double
- atan (double x)
- {
- double value;
- ***************
- *** 125,131 ****
- return value;
- }
-
- ! __inline static const double
- atan2 (double y, double x)
- {
- double pi, pi_over_2;
- --- 147,155 ----
- return value;
- }
-
- ! __inline static double
- ! atan2 (double y, double x) __const_attribute;
- ! __inline static double
- atan2 (double y, double x)
- {
- double pi, pi_over_2;
- ***************
- *** 155,173 ****
- }
- else
- {
- ! if (y > 0)
- {
- ! if (-x > y)
- ! return pi + atan (y / x);
- else
- ! return pi_over_2 - atan (x / y);
- }
- else
- {
- ! if (-x > -y)
- ! return - pi + atan (y / x);
- ! else if (y < 0)
- ! return - pi_over_2 - atan (x / y);
- else
- {
- double value;
- --- 179,197 ----
- }
- else
- {
- ! if (y < 0)
- {
- ! if (-x > -y)
- ! return - pi + atan (y / x);
- else
- ! return - pi_over_2 - atan (x / y);
- }
- else
- {
- ! if (-x > y)
- ! return pi + atan (y / x);
- ! else if (y > 0)
- ! return pi_over_2 - atan (x / y);
- else
- {
- double value;
- ***************
- *** 182,188 ****
- }
- }
-
- ! __inline static const double
- sinh (double x)
- {
- double value;
- --- 206,214 ----
- }
- }
-
- ! __inline static double
- ! sinh (double x) __const_attribute;
- ! __inline static double
- sinh (double x)
- {
- double value;
- ***************
- *** 193,199 ****
- return value;
- }
-
- ! __inline static const double
- cosh (double x)
- {
- double value;
- --- 219,227 ----
- return value;
- }
-
- ! __inline static double
- ! cosh (double x) __const_attribute;
- ! __inline static double
- cosh (double x)
- {
- double value;
- ***************
- *** 204,210 ****
- return value;
- }
-
- ! __inline static const double
- tanh (double x)
- {
- double value;
- --- 232,240 ----
- return value;
- }
-
- ! __inline static double
- ! tanh (double x) __const_attribute;
- ! __inline static double
- tanh (double x)
- {
- double value;
- ***************
- *** 215,221 ****
- return value;
- }
-
- ! __inline static const double
- atanh (double x)
- {
- double value;
- --- 245,253 ----
- return value;
- }
-
- ! __inline static double
- ! atanh (double x) __const_attribute;
- ! __inline static double
- atanh (double x)
- {
- double value;
- ***************
- *** 226,232 ****
- return value;
- }
-
- ! __inline static const double
- exp (double x)
- {
- double value;
- --- 258,266 ----
- return value;
- }
-
- ! __inline static double
- ! exp (double x) __const_attribute;
- ! __inline static double
- exp (double x)
- {
- double value;
- ***************
- *** 237,243 ****
- return value;
- }
-
- ! __inline static const double
- expm1 (double x)
- {
- double value;
- --- 271,279 ----
- return value;
- }
-
- ! __inline static double
- ! expm1 (double x) __const_attribute;
- ! __inline static double
- expm1 (double x)
- {
- double value;
- ***************
- *** 248,254 ****
- return value;
- }
-
- ! __inline static const double
- log (double x)
- {
- double value;
- --- 284,292 ----
- return value;
- }
-
- ! __inline static double
- ! log (double x) __const_attribute;
- ! __inline static double
- log (double x)
- {
- double value;
- ***************
- *** 259,265 ****
- return value;
- }
-
- ! __inline static const double
- log1p (double x)
- {
- double value;
- --- 297,305 ----
- return value;
- }
-
- ! __inline static double
- ! log1p (double x) __const_attribute;
- ! __inline static double
- log1p (double x)
- {
- double value;
- ***************
- *** 270,276 ****
- return value;
- }
-
- ! __inline static const double
- log10 (double x)
- {
- double value;
- --- 310,318 ----
- return value;
- }
-
- ! __inline static double
- ! log10 (double x) __const_attribute;
- ! __inline static double
- log10 (double x)
- {
- double value;
- ***************
- *** 281,287 ****
- return value;
- }
-
- ! __inline static const double
- sqrt (double x)
- {
- double value;
- --- 323,331 ----
- return value;
- }
-
- ! __inline static double
- ! sqrt (double x) __const_attribute;
- ! __inline static double
- sqrt (double x)
- {
- double value;
- ***************
- *** 292,315 ****
- return value;
- }
-
- ! __inline static const double
- ! _sqrt (double x)
- {
- double value;
-
- __asm ("fsqrt%.x %1,%0"
- : "=f" (value)
- ! : "f" (x));
- return value;
- ! }
- !
- ! __inline static const double
- ! hypot (const double x, const double y)
- ! {
- ! return _sqrt (x*x + y*y);
- }
-
- ! __inline static const double
- pow (const double x, const double y)
- {
- if (x > 0)
- --- 336,361 ----
- return value;
- }
-
- ! __inline static double
- ! hypot (const double x, const double y) __const_attribute;
- ! __inline static double
- ! hypot (const double x, const double y)
- {
- + #if 0
- + return sqrt (x*x + y*y);
- + #else
- double value;
-
- __asm ("fsqrt%.x %1,%0"
- : "=f" (value)
- ! : "f" (x*x + y*y));
- return value;
- ! #endif
- }
-
- ! __inline static double
- ! pow (const double x, const double y) __const_attribute;
- ! __inline static double
- pow (const double x, const double y)
- {
- if (x > 0)
- ***************
- *** 358,364 ****
- }
- }
-
- ! __inline static const double
- fabs (double x)
- {
- double value;
- --- 404,412 ----
- }
- }
-
- ! __inline static double
- ! fabs (double x) __const_attribute;
- ! __inline static double
- fabs (double x)
- {
- double value;
- ***************
- *** 369,375 ****
- return value;
- }
-
- ! __inline static const double
- ceil (double x)
- {
- int rounding_mode, round_up;
- --- 417,425 ----
- return value;
- }
-
- ! __inline static double
- ! ceil (double x) __const_attribute;
- ! __inline static double
- ceil (double x)
- {
- int rounding_mode, round_up;
- ***************
- *** 391,397 ****
- return value;
- }
-
- ! __inline static const double
- floor (double x)
- {
- int rounding_mode, round_down;
- --- 441,449 ----
- return value;
- }
-
- ! __inline static double
- ! floor (double x) __const_attribute;
- ! __inline static double
- floor (double x)
- {
- int rounding_mode, round_down;
- ***************
- *** 414,420 ****
- return value;
- }
-
- ! __inline static const double
- rint (double x)
- {
- int rounding_mode, round_nearest;
- --- 466,474 ----
- return value;
- }
-
- ! __inline static double
- ! rint (double x) __const_attribute;
- ! __inline static double
- rint (double x)
- {
- int rounding_mode, round_nearest;
- ***************
- *** 436,442 ****
- return value;
- }
-
- ! __inline static const double
- fmod (double x, double y)
- {
- double value;
- --- 490,498 ----
- return value;
- }
-
- ! __inline static double
- ! fmod (double x, double y) __const_attribute;
- ! __inline static double
- fmod (double x, double y)
- {
- double value;
- ***************
- *** 448,454 ****
- return value;
- }
-
- ! __inline static const double
- drem (double x, double y)
- {
- double value;
- --- 504,512 ----
- return value;
- }
-
- ! __inline static double
- ! drem (double x, double y) __const_attribute;
- ! __inline static double
- drem (double x, double y)
- {
- double value;
- ***************
- *** 460,466 ****
- return value;
- }
-
- ! __inline static const double
- scalb (double x, int n)
- {
- double value;
- --- 518,526 ----
- return value;
- }
-
- ! __inline static double
- ! scalb (double x, int n) __const_attribute;
- ! __inline static double
- scalb (double x, int n)
- {
- double value;
- ***************
- *** 473,478 ****
- --- 533,540 ----
- }
-
- __inline static double
- + logb (double x) __const_attribute;
- + __inline static double
- logb (double x)
- {
- double exponent;
- ***************
- *** 483,489 ****
- return exponent;
- }
-
- ! __inline static const double
- ldexp (double x, int n)
- {
- double value;
- --- 545,553 ----
- return exponent;
- }
-
- ! __inline static double
- ! ldexp (double x, int n) __const_attribute;
- ! __inline static double
- ldexp (double x, int n)
- {
- double value;
- ***************
- *** 536,539 ****
- }
- #endif
-
- ! #endif /* _MATH_68881_H */
- --- 600,603 ----
- }
- #endif
-
- ! #endif /* not __math_68881 */
- *** 41.1 1993/11/03 14:12:50
- --- ./math.h 1993/11/24 20:06:20
- ***************
- *** 101,107 ****
- extern const double _infinitydf; /* in normdf.cpp */
-
-
- ! #if defined(_M68881) || defined(__M68881__)
- # include <math-68881.h>
- #else
- # define HUGE_VAL (_infinitydf)
- --- 101,113 ----
- extern const double _infinitydf; /* in normdf.cpp */
-
-
- ! #if defined(__GNUC_INLINE__) && (!defined(NO_INLINE_MATH)) && (defined(_M68881) || defined(__M68881__))
- ! # define _INLINE_MATH 1
- ! #else
- ! # define _INLINE_MATH 0
- ! #endif
- !
- ! #if _INLINE_MATH
- # include <math-68881.h>
- #else
- # define HUGE_VAL (_infinitydf)
- ***************
- *** 118,157 ****
- # endif
- #endif
-
- ! #if !(defined(_M68881) || defined(__M68881__))
- ! __EXTERN double acos __PROTO((double));
- __EXTERN double asin __PROTO((double));
- __EXTERN double atan __PROTO((double));
- ! __EXTERN double atanh __PROTO((double));
- ! __EXTERN double cos __PROTO((double));
- __EXTERN double cosh __PROTO((double));
- ! __EXTERN double fabs __PROTO((double));
- ! __EXTERN double dabs __PROTO((double));
- !
- __EXTERN double exp __PROTO((double));
- __EXTERN double log __PROTO((double));
- __EXTERN double log10 __PROTO((double));
- - __EXTERN double fmod __PROTO((double, double));
- - __EXTERN double sin __PROTO((double));
- - __EXTERN double sinh __PROTO((double));
- __EXTERN double sqrt __PROTO((double));
- __EXTERN double hypot __PROTO((double, double));
- ! __EXTERN double tan __PROTO((double));
- ! __EXTERN double tanh __PROTO((double));
- ! __EXTERN double floor __PROTO((double));
- __EXTERN double ceil __PROTO((double));
- __EXTERN double rint __PROTO((double));
-
- __EXTERN double acosh __PROTO((double));
- __EXTERN double asinh __PROTO((double));
- - __EXTERN double atan2 __PROTO((double, double));
- - __EXTERN double pow __PROTO((double, double));
- - #endif
-
- #ifndef __STRICT_ANSI__
-
- ! #if defined(_M68881) || defined(__M68881__)
- # define dabs(x) fabs(x)
- #endif
-
- __EXTERN double copysign __PROTO((double, double));
- --- 124,167 ----
- # endif
- #endif
-
- ! #if !_INLINE_MATH
- ! __EXTERN double sin __PROTO((double));
- ! __EXTERN double cos __PROTO((double));
- ! __EXTERN double tan __PROTO((double));
- __EXTERN double asin __PROTO((double));
- + __EXTERN double acos __PROTO((double));
- __EXTERN double atan __PROTO((double));
- ! __EXTERN double atan2 __PROTO((double, double));
- ! __EXTERN double sinh __PROTO((double));
- __EXTERN double cosh __PROTO((double));
- ! __EXTERN double tanh __PROTO((double));
- ! __EXTERN double atanh __PROTO((double));
- __EXTERN double exp __PROTO((double));
- __EXTERN double log __PROTO((double));
- __EXTERN double log10 __PROTO((double));
- __EXTERN double sqrt __PROTO((double));
- __EXTERN double hypot __PROTO((double, double));
- ! __EXTERN double pow __PROTO((double, double));
- ! __EXTERN double fabs __PROTO((double));
- __EXTERN double ceil __PROTO((double));
- + __EXTERN double floor __PROTO((double));
- __EXTERN double rint __PROTO((double));
- + __EXTERN double fmod __PROTO((double, double));
- +
- + __EXTERN double ldexp __PROTO((double, int));
- + __EXTERN double frexp __PROTO((double, int *));
- + __EXTERN double modf __PROTO((double, double *));
- + #endif
-
- __EXTERN double acosh __PROTO((double));
- __EXTERN double asinh __PROTO((double));
-
- #ifndef __STRICT_ANSI__
-
- ! #if _INLINE_MATH
- # define dabs(x) fabs(x)
- + #else
- + __EXTERN double dabs __PROTO((double));
- #endif
-
- __EXTERN double copysign __PROTO((double, double));
- ***************
- *** 185,196 ****
- __EXTERN double poly __PROTO((int, double *, double));
-
- #endif /* __STRICT_ANSI__ */
- -
- - #if !(defined(_M68881) || defined(__M68881__))
- - __EXTERN double modf __PROTO((double, double *));
- - __EXTERN double ldexp __PROTO((double, int));
- - __EXTERN double frexp __PROTO((double, int *));
- - #endif /* !_M68881 */
-
- #endif /* __TURBOC__ */
-
- --- 195,200 ----
- *** 41.1 1993/11/03 14:12:50
- --- ./minimal.h 1993/11/30 18:49:24
- ***************
- *** 17,23 ****
-
- #ifndef __MINT__
-
- ! __EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */
- int raise __PROTO((int sig));
- void _exit __PROTO((int status));
-
- --- 17,23 ----
-
- #ifndef __MINT__
-
- ! __EXTERN __EXITING __exit __PROTO((long)) __NORETURN; /* def in crt0.c */
- int raise __PROTO((int sig));
- void _exit __PROTO((int status));
-
- ***************
- *** 36,42 ****
-
- #else
-
- ! __EXTERN __EXITING _exit __PROTO((int));
- #define __exit _exit
-
- #endif /* __MINT__ */
- --- 36,42 ----
-
- #else
-
- ! __EXTERN __EXITING _exit __PROTO((int)) __NORETURN;
- #define __exit _exit
-
- #endif /* __MINT__ */
- ***************
- *** 68,74 ****
- char **argv;
- char **environ;
- {
- ! __EXTERN int main __PROTO((int, char **, char **));
- exit(main((int)argc, argv, environ));
- }
-
- --- 68,75 ----
- char **argv;
- char **environ;
- {
- ! /* Avoid prototyping main, it will conflict with user's version */
- ! __EXTERN int main ();
- exit(main((int)argc, argv, environ));
- }
-
- *** 41.1 1993/11/03 14:12:50
- --- ./mintbind.h 1994/01/09 10:00:32
- ***************
- *** 75,81 ****
- Psigaction(sig, (long)(act), (long)(oact))
- int Pgeteuid( void ); /* GEMDOS 0x138 */
- int Pgetegid( void ); /* GEMDOS 0x139 */
- ! int Pwaitpid(int pid, int flag, long *rusage); /* GEMDOS 0x13a */
- long Dgetcwd(char *path, int drv, int size); /* GEMDOS 0x13b */
- long Salert(char *msg); /* GEMDOS 0x13c */
-
- --- 75,81 ----
- Psigaction(sig, (long)(act), (long)(oact))
- int Pgeteuid( void ); /* GEMDOS 0x138 */
- int Pgetegid( void ); /* GEMDOS 0x139 */
- ! long Pwaitpid(int pid, int flag, long *rusage); /* GEMDOS 0x13a */
- long Dgetcwd(char *path, int drv, int size); /* GEMDOS 0x13b */
- long Salert(char *msg); /* GEMDOS 0x13c */
-
- ***************
- *** 222,228 ****
- #define Psemaphore(a, b, c) _lmsll(0x134, a, b, c)
- #define Dlock(a, b) _smss(0x135, a, b)
- #define Psigpause(a) _vml(0x136,a)
- ! #define Psigaction(a, b, c) _lmsll(0x137, a, b, c)
- #define Pgeteuid() _imv(0x138)
- #define Pgetegid() _imv(0x139)
- #define Pwaitpid(a, b, c) _imssq(0x13a, a, b, c)
- --- 222,228 ----
- #define Psemaphore(a, b, c) _lmsll(0x134, a, b, c)
- #define Dlock(a, b) _smss(0x135, a, b)
- #define Psigpause(a) _vml(0x136,a)
- ! #define Psigaction(a, b, c) _lmsll(0x137, a, (long)b, (long)c)
- #define Pgeteuid() _imv(0x138)
- #define Pgetegid() _imv(0x139)
- #define Pwaitpid(a, b, c) _imssq(0x13a, a, b, c)
- *** 41.1 1993/11/03 14:12:50
- --- ./osbind.h 1994/01/09 10:00:44
- ***************
- *** 319,325 ****
- long _lglss(int,long,int,int);
- long _lgTss(int,_DOSTIME *,int,int);
-
- ! int _igsCSC(int,int,const char *,const char *,const char *);
- long _lgssll(int,int,int,long,long);
-
- #pragma inline _vgv((short)) {register d2,a2; "4e41";}
- --- 319,325 ----
- long _lglss(int,long,int,int);
- long _lgTss(int,_DOSTIME *,int,int);
-
- ! int _igsCpp(int,int,const char *,void *,void *);
- long _lgssll(int,int,int,long,long);
-
- #pragma inline _vgv((short)) {register d2,a2; "4e41";}
- ***************
- *** 355,361 ****
- #pragma inline d0=_lgTss((short),,(short),(short)) {register d2,a2; "4e41";}
- #pragma inline d0=_igsCC((short),(short),,) {register d2,a2; "4e41";}
-
- ! #pragma inline d0=_igsCSC((short),(short),,,) {register d2,a2; "4e41";}
-
-
- #define Pterm0() _vgv(0)
- --- 355,361 ----
- #pragma inline d0=_lgTss((short),,(short),(short)) {register d2,a2; "4e41";}
- #pragma inline d0=_igsCC((short),(short),,) {register d2,a2; "4e41";}
-
- ! #pragma inline d0=_igsCpp((short),(short),,,) {register d2,a2; "4e41";}
-
-
- #define Pterm0() _vgv(0)
- ***************
- *** 403,409 ****
- #define Malloc(a) _pgl(72,a)
- #define Mfree(a) _igp(73,a)
- #define Mshrink(a,b) _lgspl(74,0,a,b)
- ! #define Pexec(a,b,c,d) _igsCSC(75,a,b,c,d)
- #define Pterm(a) _vgs(76,a)
- #define Fsfirst(a,b) _igCs(78,a,b)
- #define Fsnext() _igv(79)
- --- 403,409 ----
- #define Malloc(a) _pgl(72,a)
- #define Mfree(a) _igp(73,a)
- #define Mshrink(a,b) _lgspl(74,0,a,b)
- ! #define Pexec(a,b,c,d) _igsCpp(75,a,b,c,d)
- #define Pterm(a) _vgs(76,a)
- #define Fsfirst(a,b) _igCs(78,a,b)
- #define Fsnext() _igv(79)
- *** 41.1 1993/11/03 14:12:50
- --- ./stdlib.h 1993/11/30 18:49:26
- ***************
- *** 86,97 ****
-
- #endif /* __STRICT_ANSI__ */
-
- ! __EXTERN __EXITING abort __PROTO((void));
- ! #ifndef __cplusplus
- /* bug in g++ 1.39.0 -- cant digest proto */
- __EXTERN int atexit __PROTO((void (*)(void)));
- #endif
- ! __EXTERN __EXITING exit __PROTO((int status));
-
- __EXTERN char *getenv __PROTO((const char *tag));
- __EXTERN int system __PROTO((const char *s));
- --- 86,97 ----
-
- #endif /* __STRICT_ANSI__ */
-
- ! __EXTERN __EXITING abort __PROTO((void)) __NORETURN;
- ! #if !(defined (__GNUG__) && __GNUG__ == 1)
- /* bug in g++ 1.39.0 -- cant digest proto */
- __EXTERN int atexit __PROTO((void (*)(void)));
- #endif
- ! __EXTERN __EXITING exit __PROTO((int)) __NORETURN;
-
- __EXTERN char *getenv __PROTO((const char *tag));
- __EXTERN int system __PROTO((const char *s));
- ***************
- *** 118,123 ****
- --- 118,133 ----
- __EXTERN wchar_t *wcsncat __PROTO((wchar_t *, const wchar_t *, size_t));
- __EXTERN int wcsncmp __PROTO((const wchar_t *, const wchar_t *, size_t));
- __EXTERN wchar_t *wcsncpy __PROTO((wchar_t *, const wchar_t *, size_t));
- +
- + #if defined(__LATTICE__) && !defined(_NO_INLINE)
- +
- + int __builtin_abs(int);
- + long __builtin_labs(long);
- +
- + #define abs(i) __builtin_abs(i);
- + #define labs(l) __builtin_labs(l);
- +
- + #endif
-
- #ifdef __cplusplus
- }
- *** 41.1 1993/11/03 14:12:50
- --- ./support.h 1994/01/09 09:14:40
- ***************
- *** 45,51 ****
- __EXTERN time_t dostime __PROTO((time_t));
- __EXTERN time_t unixtime __PROTO((unsigned dostime, unsigned dosdate));
-
- ! __EXTERN char *buffindfile __PROTO((const char *fname, const char *fpath,
- char *const *fext, char *buffer));
- __EXTERN char *findfile __PROTO((const char *fname, const char *fpath,
- char *const *fext));
- --- 45,51 ----
- __EXTERN time_t dostime __PROTO((time_t));
- __EXTERN time_t unixtime __PROTO((unsigned dostime, unsigned dosdate));
-
- ! __EXTERN char *_buffindfile __PROTO((const char *fname, const char *fpath,
- char *const *fext, char *buffer));
- __EXTERN char *findfile __PROTO((const char *fname, const char *fpath,
- char *const *fext));
- ***************
- *** 57,64 ****
- __EXTERN long get_sysvar __PROTO((void *var));
- __EXTERN void set_sysvar_to_long __PROTO((void *var, long val));
-
- ! __EXTERN __EXITING __exit __PROTO((long status));
- ! __EXTERN __EXITING _exit __PROTO((int));
-
- __EXTERN int _fork __PROTO((char *save_to));
- __EXTERN int _wait __PROTO((int *exit_code));
- --- 57,64 ----
- __EXTERN long get_sysvar __PROTO((void *var));
- __EXTERN void set_sysvar_to_long __PROTO((void *var, long val));
-
- ! __EXTERN __EXITING __exit __PROTO((long status)) __NORETURN;
- ! __EXTERN __EXITING _exit __PROTO((int)) __NORETURN;
-
- __EXTERN int _fork __PROTO((char *save_to));
- __EXTERN int _wait __PROTO((int *exit_code));
- *** 41.1 1993/11/03 14:12:50
- --- ./termios.h 1993/11/24 21:08:28
- ***************
- *** 110,115 ****
- --- 110,116 ----
- #define B50 1
- #define B75 2
- #define B110 3
- + #define B134 4
- #define B135 4
- #define B150 5
- #define B200 6
- *** 41.1 1993/11/03 14:12:50
- --- ./unistd.h 1993/11/30 18:49:30
- ***************
- *** 80,86 ****
- # endif
- #endif /* __MINT__ */
-
- ! __EXTERN __EXITING _exit __PROTO((int));
- __EXTERN int access __PROTO((const char *, int));
- __EXTERN unsigned alarm __PROTO((unsigned));
- __EXTERN int chdir __PROTO((const char *));
- --- 80,86 ----
- # endif
- #endif /* __MINT__ */
-
- ! __EXTERN __EXITING _exit __PROTO((int)) __NORETURN;
- __EXTERN int access __PROTO((const char *, int));
- __EXTERN unsigned alarm __PROTO((unsigned));
- __EXTERN int chdir __PROTO((const char *));
-